package cate.common.table.farm.island.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "迷失神庙地图")
public class IslandMapLevelRow extends ERow {

    @NoteField(value = "关卡")
    public int level;

    @NoteField(value = "格子1")
    public byte c1;

    @NoteField(value = "格子2")
    public byte c2;

    @NoteField(value = "格子3")
    public byte c3;

    @NoteField(value = "地图ID")
    public int mapTid;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.level = xrw.getInteger("关卡");
        this.c1 = xrw.getByte("格子1", (byte) -1);
        this.c2 = xrw.getByte("格子2", (byte) -1);
        this.c3 = xrw.getByte("格子3", (byte) -1);
        this.mapTid = xrw.getInteger("地图ID");
    }
}
